Formal speci cations and test : correctness and oraclePascale

نویسنده

  • Pascale Le Gall
چکیده

This article presents a new formal approach to testing. In the eld of dynamic testing, as soon as a program fails for a test set, it is agged incorrect. The remaining question is: how far can a successful program be considered as correct? We give a de nition of program correctness with respect to a speci cation which is adequate to dynamic testing. Similarly to the eld of abstract implementation, the idea is that in order to declare a program as correct, it su ces that its behavior ful lls the speci cation requirements. An intermediate semantic level between the program and the speci cation, called the oracle framework, is introduced in order to interpret observable results obtained from dynamic experiments on the program. This allows to give algebraic semantics (i.e. a set of models) to the program, compatible with the program behavior. Program correctness is then de ned by some adequacy criterion between the speci cation semantics and the program semantics. We point out that while for some speci cations, there exist exhaustive test sets (the success of which means program correctness), for some other speci cations, there only exist \complete" (but not exhaustive) test sets. Of course, all the programs rejected by a complete test set are incorrect but unfortunately, there still exist successful incorrect programs. We also explain how the test set selection can be formalized within our approach.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Executable Speci cations in Software Reliability Engineering

Bernhard K. Aichernig Technical University Graz, Institute for Software Technology (IST), M unzgrabenstr. 11/II, A-8010 Graz, Austria E-mail: [email protected] In the Handbook of Software Reliability, Lyu mentions the use of formal methods for fault removal [9]: \When formal methods are in full swing, formal design proofs might be available to achieve mathematical proof of correctnes...

متن کامل

Formal Methods for V & V of partial speci cations : An experience report

This paper describes our work exploring the suitability of formal speci cation methods for independent veri cation and validation (IV&V) of software speci cations for large, safety critical systems. An IV&V contractor often has to perform rapid analysis on incomplete speci cations, with no control over how those speci cations are represented. Lightweight formal methods show signi cant promise i...

متن کامل

Veri cation of Automatically Generated Pattern-Based LTL Speci cations

The use of property classi cations and patterns, i.e., high-level abstractions that describe common behavior, have been shown to assist practitioners in generating formal speci cations that can be used in formal veri cation techniques. The Speci cation Pattern System (SPS) provides descriptions of a collection of patterns. The extent of program execution over which a pattern must hold is descri...

متن کامل

Runtime Assurance Based On Formal Speci cations

We describe the Monitoring and Checking (MaC) framework which assures the correctness of the current execution at run-time. Monitoring is performed based on a formal speci cation of system requirements. MaC bridges the gap between formal speci cation and veri cation, which ensures the correctness of a design rather than an implementation, and testing, which partially validates an implementation...

متن کامل

Ensuring Correctness of Java Frameworks A Formal Look at JCF

In this paper we propose a novel approach to speci cation development and veri cation of object oriented frameworks employing separate interface inheritance and implementation inheritance hierarchies In particular we il lustrate how our method of framework speci cation and veri cation can be used to specify Java Collections Framework which is a part of the standard Java Development Kit and ensu...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996